package com.simple.microservices.web.convert;


import com.simple.microservices.api.dto.LoginDTO;
import com.simple.microservices.api.dto.MySpotDTO;
import com.simple.microservices.api.dto.RegisterDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 权限模块 实体转换 WEB <--> API
 */
@Mapper
public interface AuthConvert {

    AuthConvert INSTANCE = Mappers.getMapper(AuthConvert.class);

    /**
     * Web->api
     * @param registerDTO
     * @return
     */
    RegisterDTO convert(com.simple.microservices.web.auth.dto.RegisterDTO registerDTO);

    LoginDTO convert(com.simple.microservices.web.auth.dto.LoginDTO loginDTO);
    MySpotDTO convert(com.simple.microservices.web.auth.dto.MySpotDTO mySpotDTO);

}
